<?php
require_once "../../sesi_login.php";
require_once "../../konfigurasi.php";

koneksi_buka();
?>
<table id="da-ex-datatable-numberpaging" class="da-table checkable">
	<thead>
	<tr>
		<th>NAMA LENGKAP</th>
		<th>BEKAS PERKARA</th>
	</tr>
	</thead>
	<tbody>
	<?php 
		$q = mysql_query("
			SELECT a.kd_tersangka, a.nm_lengkap
			FROM t_tersangka a
			LEFT JOIN t_tersangka_spdp b ON a.kd_tersangka = b.kd_tersangka
			WHERE b.kd_perkara='".$_POST['kd']."'");
		while($dt = mysql_fetch_array($q)) {
	?>
	<tr>
		<td><?php echo $dt['nm_lengkap'] ?></td>
		<td>
			<select name="bp[<?php echo $dt['kd_tersangka'] ?>]">
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
			</select>
		</td>
	</tr>
	<?php } ?>
	</tbody>
</table>
<?php koneksi_tutup(); ?>
